<script>
	import {mapMutations} from 'vuex'
	export default {
		created() {
			// 获取屏幕高度赋值
			uni.getSystemInfo({
				success: (res)=> {  
					console.log(res,"res") 
					let navHeight = res.statusBarHeight;
					let contentHeight = res.windowHeight - navHeight; //页面的总高度 减去 导航栏的高度
					console.log(res.windowHeight, contentHeight,navHeight,"navHeight" )
					this.$store.commit('setContentHeight', contentHeight)
				}
			})
		},
	}
</script>

<style lang="less">
	*{
		padding: 0;
		list-style: none;
	}
	.uni-body{
		height: 100%;
	}
</style>
